package com.tutu.cart.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tutu.commons.pojo.Cart;
import com.tutu.commons.utils.R;

import java.util.List;

/**
 * @Program: b2c-cloud-store
 * @Description:
 * @Author: JK.TuTu
 * @ @Version: 1.0
 * @Create: 2022-12-23 09:26
 **/
public interface CartService extends IService<Cart> {
    R saveCart(Cart cart);

    List<Object> getCartById(Integer userId);

    R updateCart(Cart cart);

    int removeCart(Cart cart);

    void removeCarts(List<Integer> cartIds);
}
